<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>指冠网</title>
<link href="style/css/zhiguan.css" rel="stylesheet" type="text/css">
<script src="style/js/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link rel="stylesheet" href="style/css/tabCss.css">
<script src="style/js/jquery.js"></script>
<script src="style/js/tabImg.js"></script>
<script src="style/js/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="style/js/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
<link href="web/css/bootstrap-3.2.0.min.css" rel="stylesheet" type="text/css"/> 
</head>

<body>
<div id="FloatDIV" style="position: absolute;top: 0px; z-index:9999">
  <img src="style/image/dh01.png">
  <a href="#"><img src="style/image/dh02.png"></a>
  <img src="style/image/dh03.png">
  <a href="#"><img src="style/image/dh04.png"></a>
  <img src="style/image/dh05.png">
  <a href="#" onclick="pageScroll()"><img src="style/image/dh06.png"></a>
  <img src="style/image/dh07.png">
  <a href="#" class="fl_Bg8"><img src="style/image/dh08.png"></a>
</div>
 
    
   <div id="showservicepeople" class="showservicepeople" onClick="showservicepeople()">
</div>
<div class="top">
  <div class="top1">
    <div class="top3"><img src="style/image/sc.png"><a onClick="AddFavorite(window.location,document.title)" href="javascript:void(0)">加入收藏</a></div>
    <div class="top2">您好,欢迎光临! <?php if (!empty($_SESSION['userid'])) { ?>
                <a href="#"><?php echo $_SESSION['username']; ?> </a> 
                <a href="index.php?c=login&a=loginout">安全退出</a>
            <?php } else { ?>
                <a href="index.php?c=login&a=index">登录</a>   <a href="index.php?c=login&a=register">注册</a>
            <?php } ?>  </div>
  </div>
</div>
<div class="head">
  <div class="logo"><img src="style/image/logo.png"></div>
  <div class="tp1"><img src="style/image/tp1.jpg"></div>
</div>
<div class="navWrap">
  <div class="navChild">
    <ul>
      <li><a class="navLiHover" href="/">首页</a></li>
      <li><a href="index.php?c=task&a=list">刷单中心</a></li>
      <li><a href="index.php?c=index&a=artlist">互动论坛</a></li>
      <li><a href="tg.html">推广中心</a></li>
      <li><a href="bz.html">帮助中心</a></li>
      <li style="float: right;"><a href="index.php?c=index&a=index"><em  class="zhongxing"></em>个人中心</a></li>
    </ul>
  </div>
</div>

<div class="tabMain">
  <div class="tabWrap">
	<div class="tabChild">
	  <img src="style/image/tabimg1.jpg" alt="" border="0" usemap="#Map">
      <map name="Map">
        <area shape="rect" coords="161,228,370,279" href="/">
      </map>
	  <img src="style/image/tabimg2.jpg" alt="" border="0" usemap="#Map2">
      <map name="Map2">
        <area shape="rect" coords="163,227,368,279" href="/">
      </map>
          <img src="style/image/tabimg3.jpg" alt="">
	</div>
  </div>
  <div class="tabNav">
	<ul>
	  <li class="liHover"></li>
	  <li></li>
	  <li></li>
	</ul>
  </div>
  <div class="tablejoy">

    <p>还没有帐号，请立即注册？</p>
      <a href="index.php?c=login&a=register"><img src="style/image/ljzc.png"></a>
      <input type="text" name="username" class="form-control" placeholder="请输入用户名"" id="inputEmail3"" />
      <input type="password" name="password" class="form-control" placeholder="请输入密码" id="inputPassword3" />
      <a class="ljdl submit" href="#"><img src="style/image/ljdl.png"></a>

  
  
  </div>
</div>
<div class="bztd">
  <div class="bztda"><img src="style/image/bztd1-01.png"></div>
  <div class="bztda"><img src="style/image/bztd2-01.png"></div>
  <div class="bztda"><img src="style/image/bztd3-01.png"></div>
  <div class="bztda"><img src="style/image/bztd4-01.png"></div>
</div>
<div class="btom">
  <div class="xslc">
    <div class="xslc1"><img src="style/image/tbh.png"><a class="xslc2" href="#">点击查看》》</a></div>
    <div><img src="style/image/xslct.png"></div>
  </div>
  <div class="paih">
        <div class="paih1"><img src="style/image/tbl.png"></div>
        <div id="TabbedPanels1" class="TabbedPanels">
            <ul class="TabbedPanelsTabGroup">
              <li class="TabbedPanelsTab" tabindex="0">正在进行中</li>
              <li class="TabbedPanelsTab1" tabindex="0">发布任务排行榜</li>
              <li class="TabbedPanelsTab" tabindex="0">推广排行榜</li>
            </ul>
            <div class="TabbedPanelsContentGroup">
              <div class="TabbedPanelsContent">
                  <?php if($pai2)foreach ($pai1 as $val){?>
                <p>&nbsp;&nbsp;<?php echo $val['title']; ?></p>
                <?php } ?>
              </div>
                <div class="TabbedPanelsContent">
                     <?php if($pai1)foreach ($pai2 as $val){?>
                <p>&nbsp;&nbsp;<?php echo $val['name']; ?></p>
                <?php } ?>
                </div>
              <div class="TabbedPanelsContent"></div>
           </div>
        </div>
    </div>
</div>
<div class="bottom">Copyright © 指冠网 - 专业的刷单平台
</div>
<script type="text/javascript" language="javascript">
 
    //加入收藏
 
        function AddFavorite(sURL, sTitle) {
 
            sURL = encodeURI(sURL); 
        try{   
 
            window.external.addFavorite(sURL, sTitle);   
 
        }catch(e) {   
 
            try{   
 
                window.sidebar.addPanel(sTitle, sURL, "");   
 
            }catch (e) {   
 
                alert("加入收藏失败，请使用Ctrl+D进行添加,或手动在浏览器里进行设置.");
 
            }   
 
        }
 
    }
</script>
<script type="text/javascript">
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
</script>



<script type="text/javascript"> 
  var MarginLeft = 50;    //浮动层离浏览器右侧的距离
  var MarginTop = 200;   //浮动层离浏览器顶部的距离
  var Width = 118;            //浮动层宽度
  var Heigth= 178;           //浮动层高度
  
  //设置浮动层宽、高
  function Set()
  {
      document.getElementById("FloatDIV").style.width = Width + 'px';
      document.getElementById("FloatDIV").style.height = Heigth + 'px';
  }
  
  //实时设置浮动层的位置
  function Move()
  {
        var b_top = window.pageYOffset  
                || document.documentElement.scrollTop  
                || document.body.scrollTop  
                || 0;
        var b_width= document.body.clientWidth;
      document.getElementById("FloatDIV").style.top = b_top + MarginTop + 'px';
      document.getElementById("FloatDIV").style.left = b_width - Width - MarginLeft + 'px';
      setTimeout("Move();",100);
  }
  
  function showservicepeople()
  {
        location.href='在线客服.aspx';
  }
  
  
  Set();
  Move();

$(".fl_Bg8").click(function(event) {
		$("#FloatDIV").hide();
	});

</script>
<script>
  function pageScroll(){
    //把内容滚动指定的像素数（第一个参数是向右滚动的像素数，第二个参数是向下滚动的像素数）
    window.scrollBy(0,-100);
    //延时递归调用，模拟滚动向上效果
    scrolldelay = setTimeout('pageScroll()',100);
    //获取scrollTop值，声明了DTD的标准网页取document.documentElement.scrollTop，否则取document.body.scrollTop；因为二者只有一个会生效，另一个就恒为0，所以取和值可以得到网页的真正的scrollTop值
    var sTop=document.documentElement.scrollTop+document.body.scrollTop;
    //判断当页面到达顶部，取消延时代码（否则页面滚动到顶部会无法再向下正常浏览页面）
    if(sTop==0) clearTimeout(scrolldelay);
}
</script>
</body>
    <script src="web/js/jquery-2.1.1.min.js"></script>
    <script src="web/js/bootstrap-3.2.0.min.js"></script>
    <script>
        $(function () {
            $(".submit").click(function () {
                $.ajax({
                    url: 'index.php?c=login&a=login',
                    type: 'post',
                    data: {
                        username:$("input[name='username']").val(),
                        password:$("input[name='password']").val(),
                    },
                    success: function (result) {      
                        if(result==0){
                            alert("no");
                        }else{
                            location.href="index.php?c=index&a=index";
                        }
                    }
                })
            })
        })
    </script>
</html>